﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="functionSetup.aspx.cs"
    Inherits="InformationSystem.WebSite.Module.ForumMgr.functionSetup" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function callback() {
            parent.ResizeFrameHeight(sysPanel.getHeight());
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
        <Listeners>
            <DocumentReady Fn="callback()" />
        </Listeners>
    </ext:ResourceManager>
    <ext:Panel runat="server" ID="sysPanel" Layout="ContainerLayout" Padding="20" Title="功能管理">
        <Items>
            <ext:GridPanel runat="server" Width="620">
                <Store>
                    <ext:Store ID="fspanelStore" runat="server">
                        <Reader>
                            <ext:JsonReader>
                                <Fields>
                                    <ext:RecordField Name="id" Mapping="ID" Type="String" />
                                    <ext:RecordField Name="name" Mapping="Name" Type="String" />
                                    <ext:RecordField Name="status" Mapping="Status" Type="Boolean" />
                                    <ext:RecordField Name="check" Mapping="Check" Type="Int" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <Plugins>
                    <ext:RowEditor runat="server" SaveText="保存" />
                </Plugins>
                <View>
                    <ext:GridView runat="server" MarkDirty="false" />
                </View>
                <SelectionModel>
                    <ext:RowSelectionModel runat="server" />
                </SelectionModel>
                <ColumnModel>
                    <Columns>
                        <ext:RowNumbererColumn />
                        <ext:Column ColumnID="id" Header="学院编码" DataIndex="id" Width="100" />
                        <ext:Column ColumnID="name" Header="学院名称" DataIndex="name" Width="250" />
                        <ext:BooleanColumn ColumnID="status" Header="启用论坛" DataIndex="status" Width="100"
                            TrueText="启用" FalseText="关闭">
                            <Editor>
                                <ext:Checkbox runat="server" />
                            </Editor>
                        </ext:BooleanColumn>
                        <ext:Column ColumnID="check" DataIndex="check" Width="100" Header="权限审核">
                            <Editor>
                                <ext:ComboBox runat="server" Mode="Local">
                                    <Store>
                                        <ext:Store runat="server">
                                            <Reader>
                                                <ext:JsonReader>
                                                    <Fields>
                                                        <ext:RecordField Name="cid" Type="Int" Mapping="CID" />
                                                        <ext:RecordField Name="cname" Type="Int" Mapping="CName" />
                                                    </Fields>
                                                </ext:JsonReader>
                                            </Reader>
                                        </ext:Store>
                                    </Store>
                                </ext:ComboBox>
                            </Editor>
                        </ext:Column>
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
